﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BankSystem
{
    internal class Program
    {
        static void Main(string[] args)
        {
            int numOfAccounts = AccountBase.numOfAccounts;
            for(int i = 0; i < numOfAccounts; i++)
            {
                Console.WriteLine($"第{i}个账户的信息是：" + AccountBase.accounts[i].Print());
            }
            Random random = new Random();
            int withdrawMoney = 0;
            withdrawMoney = 1000;
            Bank.atms[0].WithDraw(AccountBase.accounts[0].id, random.Next(withdrawMoney));
            withdrawMoney = 10000;
            Bank.atms[0].WithDraw(AccountBase.accounts[2].id, random.Next(withdrawMoney));
            withdrawMoney = 20000;
            Bank.atms[0].WithDraw(AccountBase.accounts[4].id, random.Next(withdrawMoney));
        }
    }
}
